package com.example.coffeesystem.controller;

import com.example.coffeesystem.utils.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;


//@RestController==@Controller+@ResponseBody
@RestController
@CrossOrigin
public class TestController {

    @PostMapping("/test")
    public Result test (){
        return Result.success("信息返回成功","你好");
    }
}
